package cn.lyf.respjson;

import java.util.HashMap;
import java.util.Map;

public class RespJson {

    public static Map<String,Object> pack(Integer code, String msg, Object obj){
        Map<String,Object> map = new HashMap<>();
        map.put("code",code);
        map.put("msg",msg);
        map.put("data",obj);
        return map;
    }
}
